<extend name="default/template/mybase2" />

<block name="head">
<style>.button{ border-radius:0 0 .25rem .25rem !important;  }</style>
</block>

<block name="body">
<div class="page-group">
<div class="page" id="page-detail">
    <div class="content-padded">
      <div class="content-block-title">订单号:{$entry.pay_code}</div>
      <div class="list-block">
        <ul class="card">
          <li class="item-content">
            <div class="item-media"><i class="icon icon-f7"></i></div>
            <div class="item-inner">
              <div class="item-title">商品名称</div>
              <div class="item-after">{$entry.pname}</div>
            </div>
          </li>
          <li class="item-content">
            <div class="item-media"><i class="icon icon-f7"></i></div>
            <div class="item-inner">
              <div class="item-title">对换时间</div>
              <div class="item-after">{$entry['exchange_time']|date='Y-m-d',###}</div>
            </div>
          </li>
          <li class="item-content">
            <div class="item-media"><i class="icon icon-f7"></i></div>
            <div class="item-inner">
              <div class="item-title">发货地址</div>
              <div class="item-after">{$entry['address_province']}{$entry['address_city']}{$entry['address_area']}{$entry['address_detail']}
              </div>
            </div>
          </li>
          <if condition="$entry.exchange_status eq -1">
          <li class="item-content">
            <div class="item-media"><i class="icon icon-f7"></i></div>
            <div class="item-inner">
              <div class="item-title">状态</div>
              <div class="item-after yel">请操作&nbsp;<a href="{:U('ExchangeLog/pay',array('id'=>$entry['id'],'uid'=>$uid,'psw'=>$psw))}"  data-no-cache="true" class="button-warning">去操作</a></div>
            </div>
          </li>
          <elseif condition="$entry.exchange_status eq 0" />
            <li class="item-content">
              <div class="item-media"><i class="icon icon-f7"></i></div>
              <div class="item-inner">
                <div class="item-title">状态</div>
                <div class="item-after yel">请等待发货</div>
              </div>
            </li>
          <elseif condition="$entry.exchange_status eq 1" />
            <li class="item-content">
              <div class="item-media"><i class="icon icon-f7"></i></div>
              <div class="item-inner">
                <div class="item-title">状态</div>
                <div class="item-after yel">已发货&nbsp;<a href="{:U('Webview/Express/view',array('company_code'=>$entry['express_code'],'no'=>$entry['express_no']))}" class="button-warning">查看物流</a></div>
              </div>
            </li>
            <li class="item-content">
              <div class="item-media"><i class="icon icon-f7"></i></div>
              <div class="item-inner">
                <div class="item-title">快递</div>
                <div class="item-after">{$entry.express_company}</div>
              </div>
            </li>
            <li class="item-content">
              <div class="item-media"><i class="icon icon-f7"></i></div>
              <div class="item-inner">
                <div class="item-title">快递单号</div>
                <div class="item-after">{$entry.express_no}</div>
              </div>
            </li>
            <div class="row">
            <div class="col-100"><a href="{:U('Webview/ExchangeLog/delete',array('uid'=>$uid,'psw'=>$psw,'id'=>$entry['id']))}" class="delete button button-big button-fill button-warning">删除</a></div></div>
          </if>
        </ul>
      </div>
    </div>
</div>
</div>
</block>
<block name="foot">
<script type="text/javascript">
$(function() {
  'use strict';
  $.init();
});
</script>
</block>